Version

AddLevel<T>(HierarchyDescriptor,Expression<Func<T,Object>>,String) Method

Adds new HierarchyLevelDescriptor to existing HierarchyDescriptor. It is used when the type of the data item is unknown and can be applied to all properties of given type only.
Syntax
'Declaration
 
Public Overloads Shared Sub AddLevel(Of T)( _
   ByVal hierarhyDescriptor As HierarchyDescriptor, _
   ByVal expr As Expression(Of Func(Of T,Object)), _
   ByVal levelName As String _
) 
public static void AddLevel<T>( 
   HierarchyDescriptor hierarhyDescriptor,
   Expression<Func<T,object>> expr,
   string levelName
)

Parameters

hierarhyDescriptor
>The HierarchyDescriptor where this level is added to.
expr
>System.Linq.Expressions.LambdaExpression that describes the data resolving path.
levelName
The name used for this new level.

Type Parameters

T
The type of the properties that this level applies to.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also